#include <my_header.h>

/* Usage:  */
int main(int argc, char *argv[]){                                  
    struct dirent *de;
    DIR *dr = opendir("."); // 打开当前目录
    ERROR_CHECK(dr, NULL, "opendir");

    while((de = readdir(dr)) != NULL)
    {
        printf("%s\n", de->d_name);
    }
    
    closedir(dr);  // 关闭目录
    return 0;
}
#if 0

int main(void)
{
    system("ls");

    return 0;
}

#endif

